package com.xiaoxiao.android;

import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LiveKeeper extends Activity {

	private Button button;

	// private Intent intent;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);

		LiveKeeperSqliteHepler sqliteHepler = new LiveKeeperSqliteHepler(this,
				"liveKeeper", null, 1);
		SQLiteDatabase sql = sqliteHepler.getWritableDatabase(); 

		// 登录,切换到home view
		button = (Button) findViewById(R.id.login);
		button.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				ContentValues tcv = new ContentValues();  
				
				toHomeView();
			}
		});

		// 注册
//		button = (Button) findViewById(R.id.register);
//		button.setOnClickListener(new OnClickListener() {
//			@Override
//			public void onClick(View v) {
//				toHomeView();
//			}
//		});

	}

	private void toHomeView() {
		Intent intent = new Intent();
		intent.setClass(LiveKeeper.this, MainLiveKeeper.class);
		startActivity(intent);
		finish();
	}
	
	
}